package com.emr.web.controller.emr;


import java.util.List;
import java.util.Map;

import org.apache.shiro.authz.annotation.RequiresPermissions;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import com.emr.framework.web.page.TableDataInfo;
import com.emr.module.service.IBlcxTJService;
import com.emr.module.service.IDeahtdisService;
import com.emr.system.domain.SysUser;
import com.emr.web.core.base.BaseController;

/**
 * 病历借阅 信息操作处理
 * 
 * @author emr
 * @date 2019-02-25
 */
@Controller
@RequestMapping("/module/blcxtj")
public class BlcxTJController extends BaseController
{
    private String prefix = "module/blcxtj";
	
	@Autowired
	private IBlcxTJService blcxtjService;
	@Autowired
	private IDeahtdisService deahtdisService;
	
	@RequiresPermissions("module:blcxtj:view")
	@GetMapping()
	public String jianyanjg()
	{
	    return prefix + "/blcxtj";
	}
	
	/**
	 * 病历借阅统计列表
	 */
	@RequiresPermissions("module:blcxth:list")
	@PostMapping("/list")
	@ResponseBody
	public TableDataInfo list()
	{
		System.out.println("11111111111111");
		//获取用户名
		SysUser user = getUser();
		startPage();
        List<Map<String,Object>> list = blcxtjService.selectBlcxList();
		return getDataTable(list);

	}
	
	
}
